#include <stdio.h>
#include "../../src/gtthread.h"

char g_str[] = "hello world\n";

void* worker(void* arg)
{
	return g_str;
}

int main()
{
	gtthread_t th1;
	void* ret;

	gtthread_init(1000);

	gtthread_create(&th1, worker, (void*)g_str);

	gtthread_join(th1, &ret);

	printf((char*)ret);
}
